package com.tedu.bill.demo1;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;

/**
 * Author：毕龙
 * Date: 2024/5/21 14:46
 */
public class TestQuestion11 {
    public static void main(String[] args) {

        HashMap<String, String> map = new HashMap<>();
        map.put("Tom","CoreJava");
        map.put("John","Oracle");
        map.put("Susan","Oracle");
        map.put("Jerry","JDBC");
        map.put("Jim","Unix");
        map.put("Kevin","Jsp");
        map.put("Lucy","Jsp");
        map.put("Allen", "JDBC");


        for (Map.Entry<String, String> entry : map.entrySet()) {
            System.out.println(entry);
        }

        for (String s : map.keySet()) {
            if(map.get(s).equals("Jsp")){
                System.out.println(s);
            }
        }




    }
}
